package org.xxpay.core.service;

import org.xxpay.core.entity.ChannelAgentMchInfo;
import org.xxpay.core.entity.ChannelMchInfo;

import java.util.List;

/**
 * @author: dingzhiwei
 * @date: 18/04/27
 * @description: 代理渠道商接口
 */
public interface IChannelAgentMchInfoService {
      Integer count(ChannelAgentMchInfo channelAgentMchInfo);

      List<ChannelAgentMchInfo> select(int offset, int limit, ChannelAgentMchInfo channelAgentMchInfo);
      List<ChannelAgentMchInfo> findByChannelAgentMchLevel(Byte channelAgentMchLevel);

      int add(ChannelAgentMchInfo channelAgentMchInfo);

      ChannelAgentMchInfo find(ChannelAgentMchInfo channelAgentMchInfo);

      ChannelAgentMchInfo findByUserName(String userName);
      //
      ChannelAgentMchInfo findByMobile(Long mobile);

      ChannelAgentMchInfo findByEmail(String email);

      ChannelAgentMchInfo findBychannelAgentMchId(Long channelAgentMchId);


      int batchDeleteChannelAgentMch(List<Long> channelAgentMchIds);

//
    int update(ChannelAgentMchInfo channelAgentMchInfo);
//
//
//    AgentInfo findByLoginName(String loginName);
//

//

//

//
//
//
//    Map count4Agent();
//
//    AgentInfo findByParentAgentId(Long parentAgentId);
//
//    /**
//     * 重新构建代理商信息
//     * @param info
//     */
//    AgentInfo reBuildAgentInfoSettConfig(AgentInfo info);
//
//    /**
//     * 得到代理商风险预存期
//     * @param agentId
//     * @return
//     */
//    int getRiskDay(Long agentId);
//
//    List<AgentInfo> selectAll(AgentInfo agentInfo);
//
//    /**
//     * 查询总代理下的二级代理列表
//     */
//    List<Map> selectInfoAndAccount(int i, int pageSize, AgentInfo agentInfo);
}
